<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en">
	<head>
		<title>{$webname}</title>
		<meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<link rel="stylesheet" href="__CSS__bootstrap.min.css" />
		<link rel="stylesheet" href="__CSS__bootstrap-responsive.min.css" />
		<link rel="stylesheet" href="__CSS__unicorn.main.css" />
		<link rel="stylesheet" href="__CSS__unicorn.grey.css" class="skin-color" />
		
		
		
		
		
		
			<if condition="(ACTION_NAME eq index)">
			<script src="__JS__excanvas.min.js"></script>
            <script src="__JS__jquery.min.js"></script>
            <script src="__JS__jquery.ui.custom.js"></script>
            <script src="__JS__bootstrap.min.js"></script>
            <script src="__JS__jquery.flot.min.js"></script>
            <script src="__JS__jquery.flot.resize.min.js"></script>
            <script src="__JS__jquery.peity.min.js"></script>
            <script src="__JS__fullcalendar.min.js"></script>
            <script src="__JS__unicorn.js"></script>
            <script src="__JS__unicorn.dashboard.js"></script>
		<elseif  condition="(ACTION_NAME eq index)"/>
			<script src="__JS__jquery.min.js"></script>
            <script src="__JS__jquery.ui.custom.js"></script>
            <script src="__JS__bootstrap.min.js"></script>
            <script src="__JS__jquery.uniform.js"></script>
            <script src="__JS__select2.min.js"></script>
            <script src="__JS__jquery.dataTables.min.js"></script>
            <script src="__JS__unicorn.js"></script>
            <script src="__JS__unicorn.tables.js"></script>
		</if>
		
		
		
		
		
		
		
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
	<body>
		
		
		<div id="header">
			<h1><a href="./dashboard.html">Unicorn Admin</a></h1>		
		</div>
		
		<div id="search">
			<input type="text" placeholder="Search here..." /><button type="submit" class="tip-right" title="Search"><i class="icon-search icon-white"></i></button>
		</div>
		<div id="user-nav" class="navbar navbar-inverse">
            <ul class="nav btn-group">
                <li class="btn btn-inverse"><a title="" href="#"><i class="icon icon-user"></i> <span class="text">Profile</span></a></li>
                <li class="btn btn-inverse dropdown" id="menu-messages"><a href="#" data-toggle="dropdown" data-target="#menu-messages" class="dropdown-toggle"><i class="icon icon-envelope"></i> <span class="text">Messages</span> <span class="label label-important">5</span> <b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li><a class="sAdd" title="" href="#">new message</a></li>
                        <li><a class="sInbox" title="" href="#">inbox</a></li>
                        <li><a class="sOutbox" title="" href="#">outbox</a></li>
                        <li><a class="sTrash" title="" href="#">trash</a></li>
                    </ul>
                </li>
                <li class="btn btn-inverse"><a title="" href="#"><i class="icon icon-cog"></i> <span class="text">Settings</span></a></li>
                <li class="btn btn-inverse"><a title="" href="__MODULE__/public/loginout.html"  ><i class="icon icon-share-alt"></i> <span class="text">Logout</span></a></li>
            </ul>
        </div>
 <!-- 菜单循环  -->
		<div id="sidebar">
			<a href="#" class="visible-phone"><i class="icon icon-home"></i> Dashboard</a>
			<ul>
			
				<foreach name="navArray" item="values" key="keys">
				<if condition="$values['pid'] eq 0"> 
					<li class='submenu <if condition="($values[c] eq  strtolower(CONTROLLER_NAME))">open</if>'>
						<a href="#"><i class="icon icon-th-list"></i> <span>{$values['name']}</span> <span class="label">{$subArray[$values['id']]|count}</span></a>
						<ul>
						
					<foreach name="subArray[$values['id']]" item="value" key="keys">
							<li class="<if condition='($value[a] eq  strtolower(ACTION_NAME))'>active</if>">
								<a href="__MODULE__/{$value['c']}/{$value['a']}.html">{$value['name']}</a>
							</li>
					</foreach>
					
						</ul>
					</li>
				</if>
				</foreach>
				
			</ul>
		</div>
		
		
		
		
		<div id="style-switcher">
			<i class="icon-arrow-left icon-white"></i>
			<span>Style:</span>
			<a href="#grey" style="background-color: #555555;border-color: #aaaaaa;"></a>
			<a href="#blue" style="background-color: #2D2F57;"></a>
			<a href="#red" style="background-color: #673232;"></a>
		</div>
		
		
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			